<%--
  Created by IntelliJ IDEA.
  User: CoolWen
  Date: 2017/3/23
  Time: 23:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>

<head>
    <title>登录界面</title>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
                + path + "/";
        System.out.println(basePath);
    %>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>resources/css/login.css">
</head>
<body>

<div id="bg">
    <div id="login"><img src="<%=basePath%>resources/imgs/picture1.png"></div>
    <div id="usernameAndpassword">
        <form method="post" action="login">
            <div class="input">账号：<input type="text" name="username"/></div>
            <div class="input">密码：<input type="password" name="password"/></div>
            <input id="login_button" type="submit" value="登录"/>
        </form>
    </div>
</div>

</body>
</html>
